%div{ class: badge.title.gsub(' ', '-') }
  .gl-col-lg-12
    %h4
      = badge.title.capitalize
    = render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, header_options: { class: 'gl-flex gl-items-center' }) do |c|
      - c.with_header do
        .gl-grow
          %b
            = badge.title.capitalize
            &middot;
          = badge.to_html
        .js-ref-switcher-badge{ id: "js-project-ci-cd-ref-switcher-#{badge.title.parameterize(separator: '-') }", data: { project_id: @project.id, ref: @ref } }
      - c.with_body do
        .row
          .gl-col-md-2.gl-text-center
            Markdown
          .gl-col-md-10.code.js-syntax-highlight
            = highlight_badge('.md', badge.to_markdown, language: 'markdown')
        .row
          %hr
        .row
          .gl-col-md-2.gl-text-center
            HTML
          .gl-col-md-10.code.js-syntax-highlight
            = highlight_badge('.html', badge.to_html, language: 'html')
        .row
          %hr
        .row
          .gl-col-md-2.gl-text-center
            AsciiDoc
          .gl-col-md-10.code.js-syntax-highlight
            = highlight_badge('.adoc', badge.to_asciidoc)
